# -*- coding: UTF-8 -*-


class Map:
    map_cells = {}
    wt = 0
    ht = 0

    def __init__(self, wt, ht):
        self.wt = wt
        self.ht = ht
        for y in range(ht):
            for x in range(wt):
                self.map_cells["{0}_{1}".format(x * 10, y * 10)] = Cell(x, y)


class Cell:
    x = 0
    y = 0
    width = 10
    height = 10

    def __init__(self, x, y):
        self.x = x
        self.y = y

    def __str__(self):
        return "{{x:{0.x}, y:{0.y}}}".format(self)

# m = Map(10, 10)
# print(m.map_cells)


class GetCells:
    cells = []

    __cell = Cell(0, 0)

    def __init__(self, cell):
        self.__cell = cell

    def get_cells(self):
        self.cells.append(self.__cell)
        self.cells.append(Cell(self.__cell.x + self.__cell.width, self.__cell.y))
        self.cells.append(Cell(self.__cell.x, self.__cell.y + self.__cell.height))
        self.cells.append(Cell(self.__cell.x + self.__cell.width, self.__cell.y + self.__cell.height))


g = GetCells(Cell(8, 8))
g.get_cells()
for c in g.cells:
    print(c)
